package com.zqcy.workbench.utils;

import android.content.Context;
import android.util.Log;

import com.onemdos.share.OneMDOSShareUtils;
import com.onemdos.share.listener.OneMDOSShareCallback;

public class ShareCallBackListener implements OneMDOSShareCallback {
    private Context context;

    public ShareCallBackListener(Context context){
        this.context = context;
    }
    @Override
    public void shareSuccess() {
        OneMDOSShareUtils.showTip(context,"分享成功");
        Log.e("ailee","分享成功");
    }

    @Override
    public void fail(String errorInfo) {
        OneMDOSShareUtils.showTip(context,"分享失败"+errorInfo);
        Log.e("ailee","分享失败"+errorInfo);
    }

    @Override
    public void cancel() {
        OneMDOSShareUtils.showTip(context,"分享取消");
        Log.e("ailee","分享取消");
    }
}
